package com.cnc.ssm.model;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

import java.io.Serializable;

/**
 * @author Hibernate CodeGenerator
 */
public class PwSysConfig implements Serializable {

    /**
     * identifier field
     */
    private Long paramId;

    /**
     * nullable persistent field
     */
    private String paramCode;

    /**
     * nullable persistent field
     */
    private String paramName;

    /**
     * nullable persistent field
     */
    private String paramValue;

    /**
     * nullable persistent field
     */
    private String refType;

    /**
     * nullable persistent field
     */
    private String refId;

    /**
     * full constructor
     */
    public PwSysConfig(java.lang.Long paramId, java.lang.String paramCode, java.lang.String paramName, java.lang.String paramValue, java.lang.String refType, java.lang.String refId) {
        this.paramId = paramId;
        this.paramCode = paramCode;
        this.paramName = paramName;
        this.paramValue = paramValue;
        this.refType = refType;
        this.refId = refId;
    }

    /**
     * default constructor
     */
    public PwSysConfig() {
    }

    /**
     * minimal constructor
     */
    public PwSysConfig(java.lang.Long paramId) {
        this.paramId = paramId;
    }

    public java.lang.Long getParamId() {
        return this.paramId;
    }

    public void setParamId(java.lang.Long paramId) {
        this.paramId = paramId;
    }

    public java.lang.String getParamCode() {
        return this.paramCode;
    }

    public void setParamCode(java.lang.String paramCode) {
        this.paramCode = paramCode;
    }

    public java.lang.String getParamName() {
        return this.paramName;
    }

    public void setParamName(java.lang.String paramName) {
        this.paramName = paramName;
    }

    public java.lang.String getParamValue() {
        return this.paramValue;
    }

    public void setParamValue(java.lang.String paramValue) {
        this.paramValue = paramValue;
    }

    public java.lang.String getRefType() {
        return this.refType;
    }

    public void setRefType(java.lang.String refType) {
        this.refType = refType;
    }

    public java.lang.String getRefId() {
        return this.refId;
    }

    public void setRefId(java.lang.String refId) {
        this.refId = refId;
    }

    public String toString() {
        return new ToStringBuilder(this)
                .append("paramId", getParamId())
                .toString();
    }

    public boolean equals(Object other) {
        if (!(other instanceof PwSysConfig)) return false;
        PwSysConfig castOther = (PwSysConfig) other;
        return new EqualsBuilder()
                .append(this.getParamId(), castOther.getParamId())
                .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
                .append(getParamId())
                .toHashCode();
    }

}
